package com.example.a828502.sqliteimporttest;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by 828502 on 2016/5/6.
 */
public class SelectData implements Parcelable {
    public int id;
    public String select_id;
    public String select_name;

    public SelectData() {
    }
    protected SelectData(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.select_id = in.readString();
        this.select_name = in.readString();
    }

    public static final Creator<SelectData> CREATOR = new Creator<SelectData>() {
        @Override
        public SelectData createFromParcel(Parcel in) {
            return new SelectData(in);
        }

        @Override
        public SelectData[] newArray(int size) {
            return new SelectData[size];
        }
    };
    public SelectData(String sid, String name) {

        this.select_id =sid;
        this.select_name = name;
    }
    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.select_id);
        dest.writeString(this.select_name);


    }
    @Override
    public String toString() {
        return "SelectDataBean{" +
                "id=" + id +
                ", select_id='" + select_id + '\'' +
                ", select_name='" + select_name + '\'' +
                '}';
    }
}
